package service

import (
	"GoKill/models"

	"github.com/gin-gonic/gin"

	"net/http"
)

func OrderList(c *gin.Context) {
	var order []models.Order
	models.DB.Find(&order)
	c.JSON(http.StatusOK, gin.H{"data": order})
}
